package com.atguigu.spzx.model.entity.product;

import com.atguigu.spzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProductSku extends BaseEntity {
    @Schema(description = "商品编码")
    private String skuCode;
    @Schema(description = "sku标题")
    private String skuName;
    @Schema(description = "spuid")
    private Long productId;
    @Schema(description = "sku缩略图")
    private String thumbImg;
    @Schema(description = "售价")
    private BigDecimal salePrice;
    @Schema(description = "市场价")
    private BigDecimal marketPrice;
    @Schema(description = "进货价")
    private BigDecimal costPrice;
    @Schema(description = "重量")
    private BigDecimal weight;
    @Schema(description = "体积")
    private BigDecimal volume;
    @Schema(description = "库存")
    private Integer stockNum;
    @Schema(description = "销量")
    private Integer saleNum;
    @Schema(description = "上线状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;
    @Schema(description = "sku规格信息json")
    private String skuSpec;
}
